package com.tssm.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.tssm.common.dao.impl.BaseDAOImpl;
import com.tssm.dao.SarcFeedbackDAO;
import com.tssm.pojo.SarcFeedback;

@Repository("sarcfeedbackDAO")
public class SarcFeedbackDAOImpl extends BaseDAOImpl<SarcFeedback> implements
		SarcFeedbackDAO {

	/**
	 * 根据供应商名查找质量反馈单
	 */
	public List<SarcFeedback> findFeedbackBySupplierName(String supplierName) {
		String hql = "from SarcFeedback sf where sf.dr=0 and sf.supplierName=? ";
		return find(hql, supplierName);
	}
}
